package com.coincalf.task;

import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import com.alicp.jetcache.anno.config.EnableMethodCache;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author qiang
 */
@SpringBootApplication(
        exclude = {DataSourceAutoConfiguration.class, SecurityAutoConfiguration.class},
        scanBasePackages = {"com.coincalf"})
@EnableScheduling
@EnableMethodCache(basePackages = "com.coincalf.task")
@EnableCreateCacheAnnotation
@EnableDiscoveryClient
@EnableFeignClients(
        basePackages = {"com.coincalf"}
)
@EnableAsync
public class TaskApplication {

    public static void main(String[] args) {
        SpringApplication.run(TaskApplication.class, args);
    }
}